From: Alexandru Ardelean Date: Thu, 16 Oct 2014 05:46:32 +0000 (+0300) Subject: python3: reduce bloat by removing *.pyo and *.pyc files X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=a1fe8c48aae5058bbcd18c03194858700c249ef5;p=feed%2Fpackages.git python3: reduce bloat by removing *.pyo and *.pyc files Seems that if you add a package folder this would also include the compiled python3 files which increases fw size. Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python3/files/python3-package.mk b/lang/python3/files/python3-package.mk index e85b648197..090d846016 100644 --- a/lang/python3/files/python3-package.mk +++ b/lang/python3/files/python3-package.mk @@ -32,6 +32,7 @@ define Py3Package $(call shexport,Py3Package/$(1)/filespec) define Package/$(1)/install + find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f @$(SH_FUNC) getvar $$(call shvar,Py3Package/$(1)/filespec) | ( \ IFS='|'; \ while read fop fspec fperm; do \